package comday03.itheima01;

public class Demo04 {
    public static void main(String[] args) {

        //写一个程序判断并输出0~10之间的每个整数是奇数还是偶数

        //循环生成0-10
        for (int i = 0; i <= 10; i++) {
            //判断是否是偶数
            if(i%2 == 0){
                System.out.println(i +"是偶数");
            }else{
                System.out.println(i+"是奇数");
            }
        }
    }
}
